<!--
 * @Author: 陈德基
 * @Date: 2024-01-17 23:14:39
 * @LastEditTime: 2024-01-17 23:29:12
 * @Description: 
 * @FilePath: /fullstack/front-end-learning/middle/transition.html
 * 联系方式：
 * wx: melody_2009
 * qq: 7815171323 
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>动画过度Transition</title>
  <style>
    div {
      width: 100px;
      height: 100px;
      background-color: red;
      /* 在原来状态的选择器中添加过度动画属性 */
      transition: all 0.5s;
    }
    div:hover {
      width: 300px;
      height: 300px;
    }
  </style>
</head>
<body>
  <!-- 动画过度 -->
  <div></div>
</body>
</html>